<?php $model = $this->model;?>
<form id="frmUpdateUnit">
   <div id="updateUnit" class="frm">

            <input type="hidden" id="act" name="act" value="<?=$this->act?>" />
             <input type="hidden" id="selectTree" name="selectTree" value="<?=$this->UnitParent?>" />
            <fieldset>
                <legend>Cập nhật phòng ban</legend>
            <div class="row">
                <label>Mã phòng ban*</label>
                <input type="text" id="Code" name="Code" value="<?=$model['Code']?>" class="w25" required/>
                <label class="lb2">Tên phòng ban*</label>
                <input type="text" id="Name" name="Name" value="<?=$model['Name']?>" class="w25" required />
            </div>
            <div class="row">
                <label>Đơn vị triển khai</label>
                <input type="text" id="OwnerCode" name="OwnerCode" value="<?=$model['OwnerCode']?>" class="w25" />
                <label class="lb2">Thuộc phòng ban</label>
                <!-- style="width:230px;"  -->
                <input type="text" id="parentUnit" name="parentUnit" value="<?=$model['ParentName']?>" class="w25" />
                <span class="ifind imgGetDep" id="imgGetDep"></span>
               <!--  <img onclick="" class="normal_image imgGetDep" src="../../../public/images/find.jpg"> -->
            </div>
            <div class="row">
                <label>Địa chỉ</label>
                <!-- style="width:749px;" --> 
                <input type="text" id="Address" name="Address" value="<?=$model['Address']?>" class="w70" />
            </div>
               <div class="row">
                <label>Số điện thoại</label>
                <input type="text" id="Tel" name="Tel" value="<?=$model['Tel']?>" class="w25" />
                <label class="lb2">Email</label>
                <input type="email" id="Email" name="Email" value="<?=$model['Email']?>" class="w25 normal" />
            </div>
             <div class="row">
                <label>Thứ tự hiển thị</label>
                <input type="text" id="Orders" name="Orders" value="<?=$model['Orders']?>" class="w5"/>
                <label class="lb2" style="width:100px;">Trạng thái</label>
                <input type="checkbox" id="Status" name="Status" value="1" class="normal" <?php echo $model['Status'] ? 'checked' : '' ?>  />
                <label class="lb2" style="padding-left:2px;text-align: left;"  for="Status">Hoạt động</label>
            </div>
            <div style="padding-right: 10px;text-align:center; padding-bottom:2px;" class="row">
                <input type="submit" id="btnsave" name="btnsave" value="Ghi" />
                <input type="reset" id="btncancel" name="btncancel" value="Quay lai" />
            </div>
            </fieldset>
        </div>
</form>
